<?php
/**
 * Created by PhpStorm.
 * User: 。。
 * Date: 2021/12/5
 * Time: 20:27
 */
//判断是否为空
if (empty($_POST['username'])){
    echo '姓名为空';
    die;
}
if (empty($_POST['wechart'])){
    echo '微信为空';
    die;
}
//判断信息是否正确
if ($user=='admin' && $wechart=='123456'){
    echo '登入成功';
}else{
    echo '登入失败';
}
//获取
$user=$_POST['username'];
echo $user;
$wechart=$_POST['wechart'];
echo $wechart;
$qq=$_POST['qq'];
echo $qq;